﻿using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;

namespace NetCoreBBS.ViewModels
{
    public class Menu
    {

        [Display(Name = "名称")]
        public string Name { get; set; }

        [Display(Name = "链接地址")]
        [DefaultValue("#")]
        public string Url { get; set; }

        [Display(Name = "显示样式类")]
        public string StyleClass { get; set; }

        [Display(Name = "是否是头标题")]
        [DefaultValue(false)]
        public bool IsHeader { get; set; }

        [Display(Name = "排序值")]
        public int OrderBy { get; set; }
        
        [Display(Name = "可查看角色")]
        public string Roles { get; set; }

        public IEnumerable<Menu> SonList { get; set; }
    }
}
